//
//  JMMainView.h
//  VoluntaryStar
//
//  Created by ios on 15/8/17.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,JMMainViewMenueType){
    JMMainViewXMenue = 1,
     JMMainViewXXMenue = 2,
     JMMainViewXXXMenue = 3,
     JMMainViewXXXXMenue = 4
};
@class JMMainView;
@protocol JMMainViewDelegate <NSObject>

@required
-(void)meunClick:(JMMainView *)mainView;


@end

@interface JMMainView : NSObject

@property (nonatomic,strong) UIButton *button;
@property (nonatomic,assign) id delegate;
@property (nonatomic,strong) UITextField *textFiel;
@property (nonatomic) JMMainViewMenueType type;

-(void)setViewFrameWithInfo:(id)sender addSubView:(UIView *)superView;

@end

@interface JMMainView(frame)

@property (nonatomic,assign) CGRect buttonFrame;

@property (nonatomic,assign) CGRect textFielFrame;
@end